package com.edu.mybatis.mappers;

import com.edu.mybatis.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DynamicSQLMapper {
    /**
     * 多条件查询
     */
    List<Employee> getEmployeeByConditions(Employee employee);

    /**
     * 测试choose when otherwise
     */
    List<Employee> getEmployeeByChoose(Employee employee);

    int deleteMoreByArray(@Param("ids") Integer[] employeeIds);

    List<Employee> getEmployeeBySql(@Param("id") Integer id);
}
